<?php
return array(
	'defaultScope' => array(
		'condition' => "object_type = 'OrderTravel'",
	),
	'relations' => array(
		'profile' => array(CActiveRecord::HAS_ONE, 'OrderAddonTravel', 'order_id'),
		'travelers' => array(CActiveRecord::HAS_MANY, 'OrderTravelerInfo', 'order_id'),
	),
	'cascade' => array(
		'travelers','profile'
	),
//	'rules' => array(
//		array('travelers', 'coms.validators.order.TravelerValidator'),
//	),
	'_import' => array(
		array('*', 'models.Order//*'),
	),
);